<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Acconeer API: Distance Peak Detector</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Acconeer API
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__Distance__Peak.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Distance Peak Detector<div class="ingroups"><a class="el" href="group__Detectors.html">Detectors</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Distance peak detector API description.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structacc__detector__distance__peak__reflection__t.html">acc_detector_distance_peak_reflection_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reflection struct for the distance detector reflections.  <a href="structacc__detector__distance__peak__reflection__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structacc__detector__distance__peak__metadata__t.html">acc_detector_distance_peak_metadata_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Metadata for the distance detector.  <a href="structacc__detector__distance__peak__metadata__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structacc__detector__distance__peak__result__info__t.html">acc_detector_distance_peak_result_info_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Metadata for each result provided by the distance detector.  <a href="structacc__detector__distance__peak__result__info__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga3d747e79d0b7aca215d412c2ca578bd0"><td class="memItemLeft" align="right" valign="top">typedef struct acc_detector_distance_peak_configuration *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a></td></tr>
<tr class="separator:ga3d747e79d0b7aca215d412c2ca578bd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd"><td class="memItemLeft" align="right" valign="top">typedef struct acc_detector_distance_peak_handle *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a></td></tr>
<tr class="separator:ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9f08a141f9e0113c720a276ca9540393"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga9f08a141f9e0113c720a276ca9540393">acc_detector_distance_peak_service_data_callback_t</a>) (const uint16_t *data, uint16_t data_length)</td></tr>
<tr class="memdesc:ga9f08a141f9e0113c720a276ca9540393"><td class="mdescLeft">&#160;</td><td class="mdescRight">A callback for retrieving the service data buffer that the detector is based on.  <a href="#ga9f08a141f9e0113c720a276ca9540393">More...</a><br /></td></tr>
<tr class="separator:ga9f08a141f9e0113c720a276ca9540393"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2176a40e97e051db81b9ca5819d0e836"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga2176a40e97e051db81b9ca5819d0e836">acc_detector_distance_peak_configuration_create</a> (void)</td></tr>
<tr class="memdesc:ga2176a40e97e051db81b9ca5819d0e836"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a configuration for a distance detector.  <a href="#ga2176a40e97e051db81b9ca5819d0e836">More...</a><br /></td></tr>
<tr class="separator:ga2176a40e97e051db81b9ca5819d0e836"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63184e020872fab10f8561323b890358"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga63184e020872fab10f8561323b890358">acc_detector_distance_peak_configuration_destroy</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> *configuration)</td></tr>
<tr class="memdesc:ga63184e020872fab10f8561323b890358"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy a distance detector configuration.  <a href="#ga63184e020872fab10f8561323b890358">More...</a><br /></td></tr>
<tr class="separator:ga63184e020872fab10f8561323b890358"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga35fece98044fdcedaef2305d30fa561a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga35fece98044fdcedaef2305d30fa561a">acc_detector_distance_peak_create</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration)</td></tr>
<tr class="memdesc:ga35fece98044fdcedaef2305d30fa561a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a distance detector.  <a href="#ga35fece98044fdcedaef2305d30fa561a">More...</a><br /></td></tr>
<tr class="separator:ga35fece98044fdcedaef2305d30fa561a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0a4e15af6dc3ecd1acb109f405770ba0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga0a4e15af6dc3ecd1acb109f405770ba0">acc_detector_distance_peak_destroy</a> (<a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga0a4e15af6dc3ecd1acb109f405770ba0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy a distance detector.  <a href="#ga0a4e15af6dc3ecd1acb109f405770ba0">More...</a><br /></td></tr>
<tr class="separator:ga0a4e15af6dc3ecd1acb109f405770ba0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6acc618b4411820011caa01461abcbc4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga6acc618b4411820011caa01461abcbc4">acc_detector_distance_peak_activate</a> (<a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a> handle)</td></tr>
<tr class="memdesc:ga6acc618b4411820011caa01461abcbc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Activate a distance detector.  <a href="#ga6acc618b4411820011caa01461abcbc4">More...</a><br /></td></tr>
<tr class="separator:ga6acc618b4411820011caa01461abcbc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga92eb1892440a8fb3772fad465235f2bc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga92eb1892440a8fb3772fad465235f2bc">acc_detector_distance_peak_deactivate</a> (<a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a> handle)</td></tr>
<tr class="memdesc:ga92eb1892440a8fb3772fad465235f2bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deactivate a distance detector.  <a href="#ga92eb1892440a8fb3772fad465235f2bc">More...</a><br /></td></tr>
<tr class="separator:ga92eb1892440a8fb3772fad465235f2bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5d78f25d507796741af42668640a4edd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__Base.html#gacaedd5eecda28ac996abb8ff9e872c30">acc_base_configuration_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga5d78f25d507796741af42668640a4edd">acc_detector_distance_peak_get_base_configuration</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration)</td></tr>
<tr class="memdesc:ga5d78f25d507796741af42668640a4edd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the distance detector base configuration.  <a href="#ga5d78f25d507796741af42668640a4edd">More...</a><br /></td></tr>
<tr class="separator:ga5d78f25d507796741af42668640a4edd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad8ac1add38b5901765e89d13cfd4c4cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__Generic.html#gaa281da2c8fcd709b60cfdfe2b75b888a">acc_service_profile_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gad8ac1add38b5901765e89d13cfd4c4cb">acc_detector_distance_peak_service_profile_get</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration)</td></tr>
<tr class="memdesc:gad8ac1add38b5901765e89d13cfd4c4cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current service profile used by the detector.  <a href="#gad8ac1add38b5901765e89d13cfd4c4cb">More...</a><br /></td></tr>
<tr class="separator:gad8ac1add38b5901765e89d13cfd4c4cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15dae124f4ee57657df1c310187c2f6b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga15dae124f4ee57657df1c310187c2f6b">acc_detector_distance_peak_service_profile_set</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, <a class="el" href="group__Generic.html#gaa281da2c8fcd709b60cfdfe2b75b888a">acc_service_profile_t</a> service_profile)</td></tr>
<tr class="memdesc:ga15dae124f4ee57657df1c310187c2f6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a service profile to be used by the detector.  <a href="#ga15dae124f4ee57657df1c310187c2f6b">More...</a><br /></td></tr>
<tr class="separator:ga15dae124f4ee57657df1c310187c2f6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga70df50df5248077c85c4fcb0c3de81c6"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga70df50df5248077c85c4fcb0c3de81c6">acc_detector_distance_peak_running_average_factor_get</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration)</td></tr>
<tr class="memdesc:ga70df50df5248077c85c4fcb0c3de81c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get running average factor.  <a href="#ga70df50df5248077c85c4fcb0c3de81c6">More...</a><br /></td></tr>
<tr class="separator:ga70df50df5248077c85c4fcb0c3de81c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gada48410a45a4d775e77992c736f19c0a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gada48410a45a4d775e77992c736f19c0a">acc_detector_distance_peak_running_average_factor_set</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, float factor)</td></tr>
<tr class="memdesc:gada48410a45a4d775e77992c736f19c0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set running average factor.  <a href="#gada48410a45a4d775e77992c736f19c0a">More...</a><br /></td></tr>
<tr class="separator:gada48410a45a4d775e77992c736f19c0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab8053121ea3d6789e402d361820252e2"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gab8053121ea3d6789e402d361820252e2">acc_detector_distance_peak_downsampling_factor_get</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration)</td></tr>
<tr class="memdesc:gab8053121ea3d6789e402d361820252e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the sensor downsampling factor.  <a href="#gab8053121ea3d6789e402d361820252e2">More...</a><br /></td></tr>
<tr class="separator:gab8053121ea3d6789e402d361820252e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga520b47c7670d526bd7a20738ad5692df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga520b47c7670d526bd7a20738ad5692df">acc_detector_distance_peak_downsampling_factor_set</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, uint16_t downsampling_factor)</td></tr>
<tr class="memdesc:ga520b47c7670d526bd7a20738ad5692df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the sensor downsampling factor.  <a href="#ga520b47c7670d526bd7a20738ad5692df">More...</a><br /></td></tr>
<tr class="separator:ga520b47c7670d526bd7a20738ad5692df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga067d3d45df1a1e9c55a611adcf1c8cf0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga067d3d45df1a1e9c55a611adcf1c8cf0">acc_detector_distance_peak_get_next</a> (<a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a> handle, <a class="el" href="structacc__detector__distance__peak__reflection__t.html">acc_detector_distance_peak_reflection_t</a> *reflections, uint16_t *reflection_count, <a class="el" href="structacc__detector__distance__peak__result__info__t.html">acc_detector_distance_peak_result_info_t</a> *result_info)</td></tr>
<tr class="memdesc:ga067d3d45df1a1e9c55a611adcf1c8cf0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the next result from the distance detector.  <a href="#ga067d3d45df1a1e9c55a611adcf1c8cf0">More...</a><br /></td></tr>
<tr class="separator:ga067d3d45df1a1e9c55a611adcf1c8cf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga72746c917b7cacf7d3b97bda2265a53f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga72746c917b7cacf7d3b97bda2265a53f">acc_detector_distance_peak_get_metadata</a> (<a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a> handle, <a class="el" href="structacc__detector__distance__peak__metadata__t.html">acc_detector_distance_peak_metadata_t</a> *metadata)</td></tr>
<tr class="memdesc:ga72746c917b7cacf7d3b97bda2265a53f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the distance detector metadata.  <a href="#ga72746c917b7cacf7d3b97bda2265a53f">More...</a><br /></td></tr>
<tr class="separator:ga72746c917b7cacf7d3b97bda2265a53f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6135ee825ad9e6d70c4c2789b184ca2d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga6135ee825ad9e6d70c4c2789b184ca2d">acc_detector_distance_peak_set_threshold_mode_fixed</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, uint16_t fix_threshold_value)</td></tr>
<tr class="memdesc:ga6135ee825ad9e6d70c4c2789b184ca2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the threshold mode to fixed.  <a href="#ga6135ee825ad9e6d70c4c2789b184ca2d">More...</a><br /></td></tr>
<tr class="separator:ga6135ee825ad9e6d70c4c2789b184ca2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa06f38ab9af1a972b4ff2e2ee1fdbd00"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gaa06f38ab9af1a972b4ff2e2ee1fdbd00">acc_detector_distance_peak_set_threshold_mode_provided</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, size_t threshold_context_size, void *threshold_context_data)</td></tr>
<tr class="memdesc:gaa06f38ab9af1a972b4ff2e2ee1fdbd00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the threshold value to the provided one.  <a href="#gaa06f38ab9af1a972b4ff2e2ee1fdbd00">More...</a><br /></td></tr>
<tr class="separator:gaa06f38ab9af1a972b4ff2e2ee1fdbd00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7fe2b067b7a880e2ced6b6297dbf390f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga7fe2b067b7a880e2ced6b6297dbf390f">acc_detector_distance_peak_set_threshold_mode_estimation</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration)</td></tr>
<tr class="memdesc:ga7fe2b067b7a880e2ced6b6297dbf390f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the threshold mode to estimation i.e. the distance detector estimates and creates threshold to be used.  <a href="#ga7fe2b067b7a880e2ced6b6297dbf390f">More...</a><br /></td></tr>
<tr class="separator:ga7fe2b067b7a880e2ced6b6297dbf390f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gace179eaaabc79e7a3fb81df5e7ddace4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gace179eaaabc79e7a3fb81df5e7ddace4">acc_detector_distance_peak_threshold_estimation_update</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, uint16_t updates_count, float distance_start_m, float distance_end_m)</td></tr>
<tr class="memdesc:gace179eaaabc79e7a3fb81df5e7ddace4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Threshold estimation update.  <a href="#gace179eaaabc79e7a3fb81df5e7ddace4">More...</a><br /></td></tr>
<tr class="separator:gace179eaaabc79e7a3fb81df5e7ddace4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadb03f6de942299c24aefb9dce626ac26"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gadb03f6de942299c24aefb9dce626ac26">acc_detector_distance_peak_set_absolute_amplitude</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, bool set_absolute)</td></tr>
<tr class="memdesc:gadb03f6de942299c24aefb9dce626ac26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set if distance detector should operate on absolute amplitude (otherwise delta amplitude compared to threshold, which is the default behaviour)  <a href="#gadb03f6de942299c24aefb9dce626ac26">More...</a><br /></td></tr>
<tr class="separator:gadb03f6de942299c24aefb9dce626ac26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga537b6fadf2ec8acbe317ddfcdbcf2c75"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga537b6fadf2ec8acbe317ddfcdbcf2c75">acc_detector_distance_peak_threshold_estimation_reset</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration)</td></tr>
<tr class="memdesc:ga537b6fadf2ec8acbe317ddfcdbcf2c75"><td class="mdescLeft">&#160;</td><td class="mdescRight">Threshold estimation reset.  <a href="#ga537b6fadf2ec8acbe317ddfcdbcf2c75">More...</a><br /></td></tr>
<tr class="separator:ga537b6fadf2ec8acbe317ddfcdbcf2c75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabb6a60e7104814a6f7e3c86d6d3b25dc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gabb6a60e7104814a6f7e3c86d6d3b25dc">acc_detector_distance_peak_threshold_estimation_get_size</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, size_t *threshold_data_size)</td></tr>
<tr class="memdesc:gabb6a60e7104814a6f7e3c86d6d3b25dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the size of threshold estimation data.  <a href="#gabb6a60e7104814a6f7e3c86d6d3b25dc">More...</a><br /></td></tr>
<tr class="separator:gabb6a60e7104814a6f7e3c86d6d3b25dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga546b323367bca6ae047a8f7fb7f874f4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga546b323367bca6ae047a8f7fb7f874f4">acc_detector_distance_peak_threshold_estimation_get_data</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, size_t threshold_data_size, uint8_t *threshold_data)</td></tr>
<tr class="memdesc:ga546b323367bca6ae047a8f7fb7f874f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the result of a threshold estimation.  <a href="#ga546b323367bca6ae047a8f7fb7f874f4">More...</a><br /></td></tr>
<tr class="separator:ga546b323367bca6ae047a8f7fb7f874f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86791572354ebfaab1a5047c0cce15c2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga86791572354ebfaab1a5047c0cce15c2">acc_detector_distance_peak_set_sensitivity</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, float sensitivity)</td></tr>
<tr class="memdesc:ga86791572354ebfaab1a5047c0cce15c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set sensitivity factor for false detection rate, 0.0 for lowest sensitivity and 1.0 for highest sensitivity.  <a href="#ga86791572354ebfaab1a5047c0cce15c2">More...</a><br /></td></tr>
<tr class="separator:ga86791572354ebfaab1a5047c0cce15c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3b63640f0bb6e2ddfe5578cb752e427"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#gac3b63640f0bb6e2ddfe5578cb752e427">acc_detector_distance_peak_set_sort_by_amplitude</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, bool sort_by_amplitude)</td></tr>
<tr class="memdesc:gac3b63640f0bb6e2ddfe5578cb752e427"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set sort reflection by amplitude.  <a href="#gac3b63640f0bb6e2ddfe5578cb752e427">More...</a><br /></td></tr>
<tr class="separator:gac3b63640f0bb6e2ddfe5578cb752e427"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8bd94eea7d9bf20667d44428ca64bef9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Distance__Peak.html#ga8bd94eea7d9bf20667d44428ca64bef9">acc_detector_distance_peak_set_service_data_callback</a> (<a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> configuration, <a class="el" href="group__Distance__Peak.html#ga9f08a141f9e0113c720a276ca9540393">acc_detector_distance_peak_service_data_callback_t</a> service_data_callback)</td></tr>
<tr class="memdesc:ga8bd94eea7d9bf20667d44428ca64bef9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a callback function to get the service data.  <a href="#ga8bd94eea7d9bf20667d44428ca64bef9">More...</a><br /></td></tr>
<tr class="separator:ga8bd94eea7d9bf20667d44428ca64bef9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Distance peak detector API description. </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga3d747e79d0b7aca215d412c2ca578bd0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3d747e79d0b7aca215d412c2ca578bd0">&#9670;&nbsp;</a></span>acc_detector_distance_peak_configuration_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct acc_detector_distance_peak_configuration* <a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="acc__detector__distance__peak_8h_source.html#l00037">37</a> of file <a class="el" href="acc__detector__distance__peak_8h_source.html">acc_detector_distance_peak.h</a>.</p>

</div>
</div>
<a id="ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">&#9670;&nbsp;</a></span>acc_detector_distance_peak_handle_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct acc_detector_distance_peak_handle* <a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="acc__detector__distance__peak_8h_source.html#l00045">45</a> of file <a class="el" href="acc__detector__distance__peak_8h_source.html">acc_detector_distance_peak.h</a>.</p>

</div>
</div>
<a id="ga9f08a141f9e0113c720a276ca9540393"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9f08a141f9e0113c720a276ca9540393">&#9670;&nbsp;</a></span>acc_detector_distance_peak_service_data_callback_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* acc_detector_distance_peak_service_data_callback_t) (const uint16_t *data, uint16_t data_length)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A callback for retrieving the service data buffer that the detector is based on. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>A pointer to the buffer with envelope data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_length</td><td>Size of the data buffer </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="acc__detector__distance__peak_8h_source.html#l00083">83</a> of file <a class="el" href="acc__detector__distance__peak_8h_source.html">acc_detector_distance_peak.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga6acc618b4411820011caa01461abcbc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6acc618b4411820011caa01461abcbc4">&#9670;&nbsp;</a></span>acc_detector_distance_peak_activate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_activate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Activate a distance detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>The distance detector handle to activate</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga2176a40e97e051db81b9ca5819d0e836"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2176a40e97e051db81b9ca5819d0e836">&#9670;&nbsp;</a></span>acc_detector_distance_peak_configuration_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> acc_detector_distance_peak_configuration_create </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a configuration for a distance detector. </p>
<dl class="section return"><dt>Returns</dt><dd>A reference to the distance detector configuration, NULL if creation was not possible </dd></dl>

</div>
</div>
<a id="ga63184e020872fab10f8561323b890358"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga63184e020872fab10f8561323b890358">&#9670;&nbsp;</a></span>acc_detector_distance_peak_configuration_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void acc_detector_distance_peak_configuration_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a> *&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroy a distance detector configuration. </p>
<p>Destroy a distance detector configuration that is no longer needed, may be done even if a detector has been created with the specific configuration and has not yet been destroyed. The detector configuration reference is set to NULL after destruction.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to destroy, set to NULL </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga35fece98044fdcedaef2305d30fa561a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga35fece98044fdcedaef2305d30fa561a">&#9670;&nbsp;</a></span>acc_detector_distance_peak_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a> acc_detector_distance_peak_create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a distance detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A reference to the distance detector handle. NULL in case of failure </dd></dl>

</div>
</div>
<a id="ga92eb1892440a8fb3772fad465235f2bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga92eb1892440a8fb3772fad465235f2bc">&#9670;&nbsp;</a></span>acc_detector_distance_peak_deactivate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_deactivate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deactivate a distance detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>The distance detector handle</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga0a4e15af6dc3ecd1acb109f405770ba0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0a4e15af6dc3ecd1acb109f405770ba0">&#9670;&nbsp;</a></span>acc_detector_distance_peak_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void acc_detector_distance_peak_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroy a distance detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>The distance detector handle </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab8053121ea3d6789e402d361820252e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab8053121ea3d6789e402d361820252e2">&#9670;&nbsp;</a></span>acc_detector_distance_peak_downsampling_factor_get()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t acc_detector_distance_peak_downsampling_factor_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the sensor downsampling factor. </p>
<p>Gets the downsampling factor - the number of steps taken between each data point. A downsampling factor of 1 samples every possible point in the range. A downsampling_factor of 2 samples every other point, and so on.</p>
<p>The base step length is ~0.5mm. Thus, for example setting downsampling_factor to 4 makes the distance between two points in the measured range ~2mm.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to get downsampling factor from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The downsampling factor </dd></dl>

</div>
</div>
<a id="ga520b47c7670d526bd7a20738ad5692df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga520b47c7670d526bd7a20738ad5692df">&#9670;&nbsp;</a></span>acc_detector_distance_peak_downsampling_factor_set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void acc_detector_distance_peak_downsampling_factor_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>downsampling_factor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the sensor downsampling factor. </p>
<p>Sets the downsampling factor - the number of steps taken between each data point. A downsampling factor of 1 samples every possible point in the range. A downsampling factor of 2 samples every other point, and so on.</p>
<p>The base step length is ~0.5mm. Thus, for example setting downsampling_factor to 4 makes the distance between two points in the measured range ~2mm.</p>
<p>The distance peak detector supports a downsampling factor of 1, 2, or 4.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to set downsampling factor in </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">downsampling_factor</td><td>The downsampling factor </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga5d78f25d507796741af42668640a4edd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5d78f25d507796741af42668640a4edd">&#9670;&nbsp;</a></span>acc_detector_distance_peak_get_base_configuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__Base.html#gacaedd5eecda28ac996abb8ff9e872c30">acc_base_configuration_t</a> acc_detector_distance_peak_get_base_configuration </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve the distance detector base configuration. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A reference to the base configuration, or NULL if an error occurs </dd></dl>

</div>
</div>
<a id="ga72746c917b7cacf7d3b97bda2265a53f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga72746c917b7cacf7d3b97bda2265a53f">&#9670;&nbsp;</a></span>acc_detector_distance_peak_get_metadata()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void acc_detector_distance_peak_get_metadata </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structacc__detector__distance__peak__metadata__t.html">acc_detector_distance_peak_metadata_t</a> *&#160;</td>
          <td class="paramname"><em>metadata</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the distance detector metadata. </p>
<p>May only be called after a distance detector has been created.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>The detector handle </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">metadata</td><td>Metadata results are provided in this parameter </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga067d3d45df1a1e9c55a611adcf1c8cf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga067d3d45df1a1e9c55a611adcf1c8cf0">&#9670;&nbsp;</a></span>acc_detector_distance_peak_get_next()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_get_next </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga1c4bbcd8dbbfaed9e8f9dff8e75bd5bd">acc_detector_distance_peak_handle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structacc__detector__distance__peak__reflection__t.html">acc_detector_distance_peak_reflection_t</a> *&#160;</td>
          <td class="paramname"><em>reflections</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>reflection_count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structacc__detector__distance__peak__result__info__t.html">acc_detector_distance_peak_result_info_t</a> *&#160;</td>
          <td class="paramname"><em>result_info</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve the next result from the distance detector. </p>
<p>May only be called after the distance detector has been activated to retrieve the next result, blocks the application until a result is ready.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>The distance detector handle </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">reflections</td><td>Reflection results </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">reflection_count</td><td>The maximum number reflections as input and the actual number of reflections as output </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">result_info</td><td>Detection results metadata</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga70df50df5248077c85c4fcb0c3de81c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga70df50df5248077c85c4fcb0c3de81c6">&#9670;&nbsp;</a></span>acc_detector_distance_peak_running_average_factor_get()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float acc_detector_distance_peak_running_average_factor_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get running average factor. </p>
<p>The running average factor is the factor of which the most recent sweep is weighed against previous sweeps. Valid range is between 0.0 and 1.0 where 0.0 means that no history is weighed in, i.e filtering is effectively disabled. A factor of 1.0 means that the most recent sweep has no effect on the result, which will result in that the first sweep is forever received as the result. The filtering is coherent and is done on complex valued IQ data before conversion to envelope data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to get the running average factor for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Running average factor </dd></dl>

</div>
</div>
<a id="gada48410a45a4d775e77992c736f19c0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gada48410a45a4d775e77992c736f19c0a">&#9670;&nbsp;</a></span>acc_detector_distance_peak_running_average_factor_set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void acc_detector_distance_peak_running_average_factor_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>factor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set running average factor. </p>
<p>The running average factor is the factor of which the most recent sweep is weighed against previous sweeps. Valid range is between 0.0 and 1.0 where 0.0 means that no history is weighed in, i.e filtering is effectively disabled. A factor of 1.0 means that the most recent sweep has no effect on the result, which will result in that the first sweep is forever received as the result. The filtering is coherent and is done on complex valued IQ data before conversion to envelope data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to set the running average factor for </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">factor</td><td>The running average factor to set </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad8ac1add38b5901765e89d13cfd4c4cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad8ac1add38b5901765e89d13cfd4c4cb">&#9670;&nbsp;</a></span>acc_detector_distance_peak_service_profile_get()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__Generic.html#gaa281da2c8fcd709b60cfdfe2b75b888a">acc_service_profile_t</a> acc_detector_distance_peak_service_profile_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current service profile used by the detector. </p>
<p>See <a class="el" href="group__Generic.html#ga5357b6d485e62c62ad272fdeec3783a2">acc_service_profile_enum_t</a> for details</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to get a profile from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current profile, 0 if configuration is invalid </dd></dl>

</div>
</div>
<a id="ga15dae124f4ee57657df1c310187c2f6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga15dae124f4ee57657df1c310187c2f6b">&#9670;&nbsp;</a></span>acc_detector_distance_peak_service_profile_set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void acc_detector_distance_peak_service_profile_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__Generic.html#gaa281da2c8fcd709b60cfdfe2b75b888a">acc_service_profile_t</a>&#160;</td>
          <td class="paramname"><em>service_profile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set a service profile to be used by the detector. </p>
<p>See <a class="el" href="group__Generic.html#ga5357b6d485e62c62ad272fdeec3783a2">acc_service_profile_enum_t</a> for details</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to set a profile for </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">service_profile</td><td>The profile to set </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gadb03f6de942299c24aefb9dce626ac26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadb03f6de942299c24aefb9dce626ac26">&#9670;&nbsp;</a></span>acc_detector_distance_peak_set_absolute_amplitude()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_set_absolute_amplitude </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>set_absolute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set if distance detector should operate on absolute amplitude (otherwise delta amplitude compared to threshold, which is the default behaviour) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">set_absolute</td><td>True if absolute amplitude should be used instead of difference (compared to threshold), false otherwise </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga86791572354ebfaab1a5047c0cce15c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga86791572354ebfaab1a5047c0cce15c2">&#9670;&nbsp;</a></span>acc_detector_distance_peak_set_sensitivity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_set_sensitivity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>sensitivity</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set sensitivity factor for false detection rate, 0.0 for lowest sensitivity and 1.0 for highest sensitivity. </p>
<p>This function is optional but, if used, must be called before acc_detector_distance_peak_detect().</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sensitivity</td><td>Sensitivity factor to be set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga8bd94eea7d9bf20667d44428ca64bef9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8bd94eea7d9bf20667d44428ca64bef9">&#9670;&nbsp;</a></span>acc_detector_distance_peak_set_service_data_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void acc_detector_distance_peak_set_service_data_callback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga9f08a141f9e0113c720a276ca9540393">acc_detector_distance_peak_service_data_callback_t</a>&#160;</td>
          <td class="paramname"><em>service_data_callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set a callback function to get the service data. </p>
<p>A callback can be used to get the envelope service buffer. The data is the unprocessed envelope data that is fed into the distance peak algorithm</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The configuration to set the service data callback for </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">service_data_callback</td><td>The callback to get service data </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac3b63640f0bb6e2ddfe5578cb752e427"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac3b63640f0bb6e2ddfe5578cb752e427">&#9670;&nbsp;</a></span>acc_detector_distance_peak_set_sort_by_amplitude()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_set_sort_by_amplitude </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sort_by_amplitude</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set sort reflection by amplitude. </p>
<p>This function is optional but, if used, must be called before <a class="el" href="group__Distance__Peak.html#ga35fece98044fdcedaef2305d30fa561a" title="Create a distance detector. ">acc_detector_distance_peak_create()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sort_by_amplitude</td><td>True if reflections should be sorted by amplitude, largest amplitude first</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga7fe2b067b7a880e2ced6b6297dbf390f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7fe2b067b7a880e2ced6b6297dbf390f">&#9670;&nbsp;</a></span>acc_detector_distance_peak_set_threshold_mode_estimation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_set_threshold_mode_estimation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the threshold mode to estimation i.e. the distance detector estimates and creates threshold to be used. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga6135ee825ad9e6d70c4c2789b184ca2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6135ee825ad9e6d70c4c2789b184ca2d">&#9670;&nbsp;</a></span>acc_detector_distance_peak_set_threshold_mode_fixed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_set_threshold_mode_fixed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>fix_threshold_value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the threshold mode to fixed. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fix_threshold_value</td><td>Threshold value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="gaa06f38ab9af1a972b4ff2e2ee1fdbd00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa06f38ab9af1a972b4ff2e2ee1fdbd00">&#9670;&nbsp;</a></span>acc_detector_distance_peak_set_threshold_mode_provided()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_set_threshold_mode_provided </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>threshold_context_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>threshold_context_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the threshold value to the provided one. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold_context_size</td><td>The size of the threshold_context_data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold_context_data</td><td>A reference to a context from a previous threshold estimation</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga546b323367bca6ae047a8f7fb7f874f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga546b323367bca6ae047a8f7fb7f874f4">&#9670;&nbsp;</a></span>acc_detector_distance_peak_threshold_estimation_get_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_threshold_estimation_get_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>threshold_data_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>threshold_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the result of a threshold estimation. </p>
<p>Retrieves the result of a threshold estimation which is possible to save to a file and use when recreating the distance detector.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold_data_size</td><td>The size of memory referenced by threshold_data, must be of at least the size provided in acc_detector_distance_peak_threshold_estimation_get_size </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">threshold_data</td><td>The threshold data is stored in this parameter, must be of at least the size provided in acc_detector_distance_peak_threshold_estimation_get_size</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="gabb6a60e7104814a6f7e3c86d6d3b25dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabb6a60e7104814a6f7e3c86d6d3b25dc">&#9670;&nbsp;</a></span>acc_detector_distance_peak_threshold_estimation_get_size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_threshold_estimation_get_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>threshold_data_size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the size of threshold estimation data. </p>
<p>Retrieves the size of threshold estimation data to use when retrieving the data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">threshold_data_size</td><td>The threshold estimation data size is stored in this parameter</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="ga537b6fadf2ec8acbe317ddfcdbcf2c75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga537b6fadf2ec8acbe317ddfcdbcf2c75">&#9670;&nbsp;</a></span>acc_detector_distance_peak_threshold_estimation_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_threshold_estimation_reset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Threshold estimation reset. </p>
<p>Resets contents of any ongoing threshold estimation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
<a id="gace179eaaabc79e7a3fb81df5e7ddace4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gace179eaaabc79e7a3fb81df5e7ddace4">&#9670;&nbsp;</a></span>acc_detector_distance_peak_threshold_estimation_update()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool acc_detector_distance_peak_threshold_estimation_update </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Distance__Peak.html#ga3d747e79d0b7aca215d412c2ca578bd0">acc_detector_distance_peak_configuration_t</a>&#160;</td>
          <td class="paramname"><em>configuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>updates_count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>distance_start_m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>distance_end_m</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Threshold estimation update. </p>
<p>Starts or updates an already ongoing threshold estimation. It is recommended to use at least 50 updates. The threshold estimation must be called before activating the detector</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">configuration</td><td>The distance detector configuration previously created </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">updates_count</td><td>The number of updates for the threshold estimation </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">distance_start_m</td><td>The distance of the first data point[m] </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">distance_end_m</td><td>The distance of the last data point[m]</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful, false otherwise </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Dec 2 2019 09:40:46 for Acconeer API by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
